import React, { Component } from 'react';

export default class testItem extends Component{
    constructor(props){
        super(props);
        this.handDelete = this.handDelete.bind(this);
    }

    handDelete(){
        this.props.delete(this.props.index);
    }

    render(){
        const {content} = this.props;
        return(
            <div onClick={this.handDelete}>{content}</div>
        )
    }
}